package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.SysAgreement;
import org.apache.ibatis.annotations.Param;

public interface SysAgreementMapper extends FsMapper<SysAgreement> {

    /**
     * 查询协议内容
     * @param consumer
     * @return
     */
    SysAgreement queryAgreementByName(@Param("name") String consumer);

    /**
     * 更新协议内容
     * @param type
     * @param content
     */
    void updateByName(@Param("name") String type, @Param("content") String content);
}